import { createRouter, createWebHistory } from "vue-router"
import HomeView from "../views/HomeView.vue"

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/",
      name: "Advert",
      name: "advert",
      component: () => import("../views/Advert.vue"),
    },
    {
      path: "/detail",
      name: "Detail",
      name: "detail",
      component: () => import("../views/Detail.vue"),
    },
  ],
})

export default router
